package cn.v2tila.rsosa.management.jpa;

import cn.v2tila.rsosa.management.entity.CollegeEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author v2tila on 16:28 2019/2/25
 */
@Service
public interface CollegeJPA extends JpaRepository<CollegeEntity,Integer>,
        JpaSpecificationExecutor<CollegeEntity> {
    CollegeEntity findByNo(String no);

    CollegeEntity findBySchoolNoAndNo(String schoolNo, String no);

    List<CollegeEntity> findBySchoolNo(String SchoolNo);

    CollegeEntity findByNameAndSchoolNo(String name, String schoolNo);
}
